import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
		{
		  path: '/',
		  name: 'main',
			redirect: '/homeIndex',
		  component: () => import('../views/main.vue'),
			children:[
				{path: '/homeIndex',name: 'home', component: () => import('../views/modules/home/index.vue')},
				{path: '/index', component: () => import('../views/modules/index.vue')},
				{path: '/organization', component: () => import('../views/modules/organization/organization.vue')},
				{path: '/school', component: () => import('../views/modules/school/AddSchool.vue')},
			]
		}
  ]
})

export default router
